<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html lang="en">
<!--<![endif]-->

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href='http://fonts.googleapis.com/css?family=Oswald:400,700,300|Bitter:400,700,400italic' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="/recipe/Public/chahua3061/javascript/jquery-latest.js"></script>
<script type="text/javascript" src="/recipe/Public/chahua3061/javascript/red-sky-options.js"></script>
<!-- Mobile Specific Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- CSS -->
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="/recipe/Public/chahua3061/css/style.css" rel="stylesheet" type="text/css">
<link href="/recipe/Public/chahua3061/css/responsive.css" rel="stylesheet" type="text/css">
<!-- START SETTINGS BOX -->
<script type="text/javascript" src="/recipe/Public/chahua3061/settingsbox/farbtastic/farbtastic.js"></script>
<script type="text/javascript" src="/recipe/Public/chahua3061/settingsbox/settingsbox.js"></script>
<link href="/recipe/Public/chahua3061/settingsbox/settingsbox.css" rel="stylesheet" type="text/css">
<link href="/recipe/Public/chahua3061/settingsbox/farbtastic/farbtastic.css" rel="stylesheet" type="text/css">
<!-- END SETTINGS BOX -->

<title>iCOOK</title>
</head>

<body>
<!-- START SETTINGS BOX -->
<div class="customPanel customPanelClosed">
  <div class="customPanelOptions">
    <h1>Settings Box</h1>
    Background<br />
    <div style="clear:both;"></div>
    <div class="customPanelOptionsDefault">Default</div>
    <div style="clear:both;"></div>
    <div style="height: 10px"></div>
    Colors:<br />
    <div style="clear:both;"></div>
    <div class="customPanelOptionsColor bodycolor01"></div>
    <div class="customPanelOptionsColor bodycolor02"></div>
    <div class="customPanelOptionsColor bodycolor03"></div>
    <div class="customPanelOptionsColor bodycolor04"></div>
    <div class="customPanelOptionsColor bodycolor06"></div>
    <div class="customPanelOptionsColor bodycolor07"></div>
    <div class="customPanelOptionsColor bodycolor08"></div>
    <div class="customPanelOptionsColor bodycolor09"></div>
    <div class="customPanelOptionsColor bodycolor10"></div>
    <div class="customPanelOptionsPickerButton customPanelOptionsPickerButtonBackground"></div>
    <div style="clear:both;"></div>
    Textures:<br />
    <div style="clear:both;"></div>
    <div class="customPanelOptionsTexture bodytexture01 bodytexturePreview"></div>
    <div class="customPanelOptionsTexture bodytexture02 bodytexturePreview"></div>
    <div class="customPanelOptionsTexture bodytexture03 bodytexturePreview"></div>
    <div class="customPanelOptionsTexture bodytexture04 bodytexturePreview"></div>
    <div class="customPanelOptionsTexture bodytexture05 bodytexturePreview"></div>
    <div class="customPanelOptionsTexture bodytexture06 bodytexturePreview"></div>
    <div class="customPanelOptionsTexture bodytexture07 bodytexturePreview"></div>
    <div class="customPanelOptionsTexture bodytexture08 bodytexturePreview"></div>
    <div class="customPanelOptionsTexture bodytexture09 bodytexturePreview"></div>
    <div class="customPanelOptionsTexture bodytexture10 bodytexturePreview"></div>
    <div style="clear:both;"></div>
    </div>
  <div class="customPanelOptionsPicker customPanelOptionsPickerBackground"></div>
  <div class="customPanelOptionsPicker customPanelOptionsPickerSite"></div>
  <div class="customPanelButton"></div>
</div>
<!-- END SETTINGS BOX --> <!-- START CONTENT -->
<div id="box">
	<div class="container">
<!-- START HEADER -->
<div class="columns one">
	<div id="header">
    	<div id="logo"><a href="index-2.html">iCOOK</a></div>
        
        <ul class="menu">
        	<li><a href="<?php echo U('Food/foodlist');?>">菜谱列表</a></li>
                 </ul>
        <div class="navigation">
      <form action="http://wp.red-sky.pl/">
        <select class="navigationmicro" name="myDestination" onChange="this.form.window_name.value++; ob=this.form.myDestination; window.open(ob.options[ob.selectedIndex].value,'Window_Name'+this.form.window_name.value,'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,width=400,height=300')">
          <option value="index-2.html">Home</option>
          <option value="recipes.html">Recipe Gallery</option>
          <option value="about.html">About</option>
          <option value="contact.html">Contact</option>
        </select>
        <input name="window_name" style="display:none;" type="hidden" value="1">
      </form>
      <div class="clear"></div>
    </div>
    	<div class="clear"></div>
    </div>
</div>
<!-- END HEADER -->

<!-- START HINTS -->
<div class="hint columns one">
	爱自己，不需要理由。爱美食，也注重健康；爱美食的味觉享受，也要食材的新鲜正宗；我的健康我做主，热爱生活，注重养生。
</div>
<!-- END HINTS -->

<div class="columns one featuredimage">
	<div class="image"><img src="/recipe/Public/Uploads/foodphoto/<?php echo ($food['photo']); ?>" alt="food_single" width="1000px"  /></div>
</div>


<!-- START LEFT CONTENT -->
<div class="columns two-thirds">

  <div class="single_post">
  <div class="postinfo">
  <h2><?php echo ($food['name']); ?></h2>
  <p><?php echo ($food['createtime']); ?>  -  <span>by</span>  <a href="#"><?php echo ($food['telephone']); ?> </a>   </p>
  </div>
  <div class="postdescription">
  <p><?php echo ($food['jianjie']); ?></p>
  <div class="image"><img src="/recipe/Public/Uploads/foodphoto/<?php echo ($food['photo']); ?>" alt="cooking" /></div>
 
  
  <div class="recipe">
        <h2>具体步骤</h2>
       
        <p><?php echo ($food['intro']); ?></p>
    
  </div>

  
  <div class="options">
      <div class="clear"></div> 
  </div>
      <div class="comments">
      	<h3>我是评论哦~~</h3>
        <?php if(is_array($food3)): $i = 0; $__LIST__ = $food3;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="comment">
        <div class="commenttext"><?php echo ($vo["content"]); ?> </div>
        <div class="author"><span>by</span>用户<?php echo ($vo["telephone"]); ?><span>on</span> <?php echo ($vo["createtime"]); ?>  <a href="#">回复</a></div>
        </div><?php endforeach; endif; else: echo "" ;endif; ?>


      	
        
  
      
      
     
      
      	<h3>我要评论</h3>
      <form method="post"   action="<?php echo U(addcomment);?>"  enctype="multipart/form-data" >
      <textarea class="commenttextarea" name="content" id="content"cols="10" rows="10"></textarea>
      
      <div class="lines">
      手机号<br/><input class="line" name="telephone" id="telephone" type="text" value="<?php echo ($telephone); ?>">
      </input>
      </div>
      <div class="lines_last">
      菜品id<br/><input class="line" name="fid" id="fid" type="text" value="<?php echo ($food['fid']); ?>">
      </input>
      </div>
      <div class="clear"></div>
      <input class="comment_button" name="send" type="submit" value="提交">
      </form>      
      </div>  
  </div>
  
    	<div class="clear"></div>  
    </div>
    
</div>
<!-- END LEFT CONTENT -->

<!-- START RIGHT SIDEBAR -->
<div class="columns one-third_last sidebar">

<div class="title">点击量最高~~</div>

<?php if(is_array($food2)): $i = 0; $__LIST__ = $food2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="image"><img src="/recipe/Public/Uploads/foodphoto/<?php echo ($vo["photo"]); ?>" style="width:170px;height:180px;" alt="blogimg" /></div>
<h4><a href="/recipe/Home/Food/detail/id/<?php echo ($vo["fid"]); ?>"><?php echo ($vo["name"]); ?></a></h4><?php endforeach; endif; else: echo "" ;endif; ?>



</div>
<!-- END RIGHT SIDEBAR -->

<!-- START PAGINATION -->
<div class="pagination columns one">
	<a href="#">&laquo; 返回顶部</a> <span><a href="#">返回顶部&raquo;</a></span>
</div>
<!-- END PAGINATION -->
<div class="clear"></div>

<!-- START FOOTER -->
<div id="footer">
<p>ICOOK版权归于141101100436 魏莹悦</p>
</div>
<!-- END FOOTER -->

	</div>
</div>

 </body>
</html>